package com.yidu.t299.service.zzy.impl;

import com.yidu.t299.dao.zzy.RecordaMapper;
import com.yidu.t299.domain.zzy.Record;
import com.yidu.t299.service.zzy.RecordaBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author:周子怡
 * @Date:2023/03/21/10:13
 * @Description:
 */
@Service
@Transactional
public class RecordaBizImpl implements RecordaBiz {
    @Autowired
    private RecordaMapper recordMapper;
    /**
     * 根据课程名称查询课程编号
     *
     * @param recordId 课程名称
     * @return 课程编号
     */
    @Override
    public Integer selectByName(Integer recordId) {
        return recordMapper.selectByName(recordId);
    }

    @Override
    public List<Record> selectAllGetRecord() {
        return recordMapper.selectAllGetRecord();
    }
}
